Telegram Group & Telegram Channel
Forwarded from Raspberry Project
اولین پروژه با میکروپایتون را شروع کنید!!!!


برد میکروپایتون را راه اندازی کنید و وارد صفحه ترمینال IDLE Python شوید .

ابتدا کتابخانه Machine را فراخوانی کنید

>>import machine

و سپس یکی از پینهای برد را به حالت خروجی تنظیم میکنیم

>>led = machine.Pin(Pin Number, machine.Pin.OUT)

در دستور بالا به جای
Pin Number

شماره پین مورد نظر را وارد کنید

..با دستور زیر میتوانید led متصل به پین مورد نظر را روشن کنید . یا به عبارتی پین مورد نظر را 1 کنید .

>>led.high()

و با دستور زیر میتوانید Pin را به حالت ۰منطقی و یا خاموش ببرید

>>led.low()

تا اینجا به صورتی دستی توانستیم یک پین را ۰ و ۱ کنیم . حال میخواهیم چروژه چشمک زن را به صورت اتوماتیک اجرا کنیم .

کتابخانه Time را جهت ایجاد تاخیر فراخوانی میکنیم

>>import time

و به کمک یک حلقه بینهایت میتوانید این عملیات چشمک زدن را اجرا نمایید

>> while True:
led.high()
time.sleep(0.5)
led.low()
time.sleep(0.5)


پایان اولین پروژه با میکرو پایتون

اسکریپت به صورت کامل 👇👇👇

#BLINK MICRO PYTHON
#--------------------------
import machine
import time
led = machine.Pin(15,machine.Pin.OUT)
while True:
led.high()
time.sleep(0.5)
led.low()
time.sleep(0.5)
#--------------------------
# On behalf of Eng Meysam Mz
#---------------------------


@Raspberryproject
@Raspberry_Python
@micropython_iot



tg-me.com/micropython_iot/33
Create:
Last Update:

اولین پروژه با میکروپایتون را شروع کنید!!!!


برد میکروپایتون را راه اندازی کنید و وارد صفحه ترمینال IDLE Python شوید .

ابتدا کتابخانه Machine را فراخوانی کنید

>>import machine

و سپس یکی از پینهای برد را به حالت خروجی تنظیم میکنیم

>>led = machine.Pin(Pin Number, machine.Pin.OUT)

در دستور بالا به جای
Pin Number

شماره پین مورد نظر را وارد کنید

..با دستور زیر میتوانید led متصل به پین مورد نظر را روشن کنید . یا به عبارتی پین مورد نظر را 1 کنید .

>>led.high()

و با دستور زیر میتوانید Pin را به حالت ۰منطقی و یا خاموش ببرید

>>led.low()

تا اینجا به صورتی دستی توانستیم یک پین را ۰ و ۱ کنیم . حال میخواهیم چروژه چشمک زن را به صورت اتوماتیک اجرا کنیم .

کتابخانه Time را جهت ایجاد تاخیر فراخوانی میکنیم

>>import time

و به کمک یک حلقه بینهایت میتوانید این عملیات چشمک زدن را اجرا نمایید

>> while True:
led.high()
time.sleep(0.5)
led.low()
time.sleep(0.5)


پایان اولین پروژه با میکرو پایتون

اسکریپت به صورت کامل 👇👇👇

#BLINK MICRO PYTHON
#--------------------------
import machine
import time
led = machine.Pin(15,machine.Pin.OUT)
while True:
led.high()
time.sleep(0.5)
led.low()
time.sleep(0.5)
#--------------------------
# On behalf of Eng Meysam Mz
#---------------------------


@Raspberryproject
@Raspberry_Python
@micropython_iot

BY Micropython & IOT


Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283

Share with your friend now:
tg-me.com/micropython_iot/33

View MORE
Open in Telegram


Micropython & IOT Telegram | DID YOU KNOW?

Date: |

Look for Channels Online

You guessed it – the internet is your friend. A good place to start looking for Telegram channels is Reddit. This is one of the biggest sites on the internet, with millions of communities, including those from Telegram.Then, you can search one of the many dedicated websites for Telegram channel searching. One of them is telegram-group.com. This website has many categories and a really simple user interface. Another great site is telegram channels.me. It has even more channels than the previous one, and an even better user experience.These are just some of the many available websites. You can look them up online if you’re not satisfied with these two. All of these sites list only public channels. If you want to join a private channel, you’ll have to ask one of its members to invite you.

Traders also expressed uncertainty about the situation with China Evergrande, as the indebted property company has not provided clarification about a key interest payment.In economic news, the Commerce Department reported an unexpected increase in U.S. new home sales in August.Crude oil prices climbed Friday and front-month WTI oil futures contracts saw gains for a fifth straight week amid tighter supplies. West Texas Intermediate Crude oil futures for November rose $0.68 or 0.9 percent at 73.98 a barrel. WTI Crude futures gained 2.8 percent for the week.

Micropython & IOT from ms


Telegram Micropython & IOT
FROM USA